package bamboo.drawingkid.views.components;

import javax.microedition.lcdui.Display;

import bamboo.drawingkid.Main;
import bamboo.drawingkid.views.components.FormTemplate;

public class ToolbarButton extends Button
{
	public String s;
	public ToolbarButton(String pressed_image_url, String unpressed_image_url) {
		super(pressed_image_url, unpressed_image_url);
		s = pressed_image_url;
	}

	public ToolbarButton(String sprite_url) {
		super(sprite_url);
	}

	public void onSelected() {
		// TODO Auto-generated method stub
		if(s.equals("/Icon_Template_Hover.png")){
			System.out.println("heloo co co o");
			FormTemplate tempPicker = new FormTemplate("");
			Display disp = Main.getInstance().getDisplay();
			System.out.println("end");
	    	disp.setCurrent(tempPicker);
			//Main.getInstance().showTemplateView();
		}
	}
}
